
#ifndef  __LV_SDL2_DISP__
#define  __LV_SDL2_DISP__

#include "pt_include.h"
#include "pt_printk.h"

#ifdef __cplusplus
extern "C" {
#endif
/*******************************************/
typedef struct {
    SDL_Window *   window;
    SDL_Renderer * renderer;
    SDL_Texture *  texture;
    volatile bool  sdl_refr_qry;
    uint32_t * tft_fb;

}monitor_t;

#define SDL_HOR_RES    MONITOR_HOR_RES
#define SDL_VER_RES    MONITOR_VER_RES
#define SDL_ZOOM       MONITOR_ZOOM

#define KEYBOARD_BUFFER_SIZE SDL_TEXTINPUTEVENT_TEXT_SIZE


int lv_sdl2_hal_init(void);
int lv_sdl2_disp_init(void);
int lv_sdl2_mouse_init(void);
int lv_sdl2_keyboard_init(void);
/*******************************************/
#ifdef __cplusplus
} 
#endif


#endif


